Fix handling of deleted files in update script