We now store the app version codes and and global OS incremental version name in the PM backup state and the actual backup record. We then use that information to trigger a re-backup of the metadata if the OS revision changes in any way, or to back up single apps' metadata if we notice that they've been upgraded.