only node v0.10.x has os.tmpdir()