fixed content_modified_at in overwrite_file()