Improve the XCode version detection