Fixes/improvements for bash-completion scripts

Summary of changes in this PR:
* ctest: Add -S,-SP options arguments completion
* cmake, cpack: More accurate generator names extraction. Also completion of generator names containing spaces have been fixed.