Merge TempDir and system_temp_directory.