refactor brew-specific bash completion stuff