You need to use the source of the tmpdir method over at the joyent/node, as we need to support node 0.8.