Update genmake.sh

Disallow invalid arguments.
Fix directory change bug.
Update genmake.sh

Add version variable.
Merge pull request #1 from zcarbonite/testing

Testing