allow rec and flat flags to be overwritten by pkg.json in build.js