For Homebrew, switch between v1 and v2 of bash-completion based on whether the running Bash shell is new enough to use v2.