prefer grunt.file.write to fs.writeFileSync
Reason : fs.writeFileSync fails on non existant folders