Pass options.mode from grunt.file.write on to fs.writeFileSync