Smarter bash-completion handling for homebrew