Fix for tmpdir