support node v0.8-0.10 with os.tmpDir()