Fixed os.tmpdir for older version of node