Determining the upgrade compatibility of an environment