Use graceful-fs for util.file.write

fs.writeFile won't, it appears.