Fix CB3978 - support for non-semver 2 digit versions of xcodebuild

This adds support for 2 digit versions of xcodebuild, like the newly release 5.0. Apple doesn't provide the 3rd digit expected by semver (eg, 5.0.0). This is a different implementation of @csantanapr's similar pull (#13) with a test to go along with the change.