Fixing tmpdir issues.