Fix the check for legacy systems on upgrade.