genmod.sh was failing if directory didn't contain _mod.inc and _mod.qh. I've fixed it.
genmod.sh
_mod.inc
_mod.qh