Hack; fs.writeSync isn't working