Upgrade version detection mechanism