Updated gen-build.php