Fix for node 0.8

Hello,

It seems os.tmpdir used to be os.tmpDir in 0.8, this fixes that.