os.tmpdir() is os.tmpDir() in node v0.8.x