fix spec for environment tmpdir != "/tmp"

Enable to work on my os x  "/var/folders/p7/1tl0mp_25v9c04m26bt..."