Use graceful-fs for util.file.write

fs.writeFile won't, it appears.
Merge pull request #174 from jjgod/master

Use graceful-fs for util.file.write