Fall back to os.tmpDir if os.tmpdir is not found. This makes the module work in node.js 0.8.