Fix method for calculating the list of compatible versions of an app