Fix new version detection method.