throws in Node 0.8. Maybe just copy the tmpdir method from Node source?