Fix version overrides with a recursively matching target version.
Avoid internal exception when loading version selections.