fix for setting tmpdir