add fallback for os.tmpDir for nodejs 0.6.x