Cope if file doesn't exist in write_file