It is not uncommon for packages to install cmake's bash-completion without depending on common bash-completion helper scripts. This commit improves compatibility in those scenarios.