QA: Add a set of checks for bash-completion files

Add checks for common mistakes when installing bash completion files:
legacy directory, incorrect naming, missing aliases, deprecated 'have'
function.
Merge branch 'qa-bashcomp' into all-in-one

Conflicts:
	bin/misc-functions.sh