Store temporary files in temp_directory not working_directory