Fall back to os.tmpDir if os.tmpdir is not found.

This makes the module work in node.js 0.8.

Superseedes https://github.com/sindresorhus/tempfile/pull/6 (although this one doesn't support 0.6 and below).