Fixed logic for updating UpdateProfiles.plist.