Bug fix: should use variable for gen.dir.
Bug fix: should use variable for gen.dir.

git-svn-id: https://svn.sable.mcgill.ca/mclab/Project@49 89b902b4-d83f-0410-b942-89f7a419ffdb

Migrated from Sable/mclab@7e9bf9b118b240d6042664462977d23ef034392d

Sable/Mc2For,Sable/Mc2For,Sable/MiX10,Sable/MiX10,Sable/MiX10,Sable/MiX10,Sable/MiX10