Update in the build system scripts

- Added the --generator option that allows to specify the cmake generator
  to be used.
- Added bash-completion for the --generator option that allows to complete
  the name of the generator on-the-fly from supported generators.