Update genmake.pl

Added in build and dist directory functionality