Replace write_files with one-arg form of create_temporary_dir