Modified genmake.sh