fix spec for environment tmpdir != "/tmp"