Makefile fixes

/bin/sh: 1: cannot create gen/nqpmojs.pm: Directory nonexistent