Support node 0.8 which has os.tmpDir with different capitalization

A simple change to support node 0.8 which does not have `os.tmpdir`