Check to see if the temp directory exists before trying to write to it.
Merge pull request #5 from achrist/adam/package-json-override

Check to see if the temp directory exists before trying to write to it.