Only set should_update_etag for directories in the update case

If there is an error during the local rename for a file, we don't
want to write the entry for the destination before because there might be
an error