tmpdir fix