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.

Changes in v2:

- silenced output (error) when sourcing completion files,

- faked _have() to enable all conditional completions in the tested
  files.

Changes in v3:

- missing EPREFIX.