use jsonfile to write package.json because ejs can not use conditional expressions in jsonfile; #1