Fix xcode version comparison

Xcode version can be 3 numbers separated by dot or 2 numbers separated by dot. `versionCompare` function  expects versions in same format. We cannot use `semver` module because it throws error for versions in "x.y" format.