use os.tmpDir for node v0.8