switching fs.exists check in build.js to conditional mkdir in Makefile