Check if bash_completion is installed.

I'm not sure if this is the right approach, but this is to avoid these kinds of errors on (weird) Bash shells when bash-completion is not installed.

```
-bash: _get_comp_words_by_ref: command not found
-bash: __ltrim_colon_completions: command not found
```