Fix tmpdir