Use native os.tmpDir that is available since node 0.8.0+.

This fixes #22.