A few fixes for generating projects on *nix platform.


This PR fixes Issue #473 and does rename all the .command files to .sh to be more confirming to *nix.
It took me a while before i found out that the .command files was *nix related.
I also added a toplevel generateAllProjects.sh equivalent  with the windows bat script to generate all projects specified in allProjects.txt.

Developed and tested on Fedora 19. And what I could find out /bin/bash is also available on Mac OSX so it shouldn't break but needs to be verified.