completion: bash: improve function detection