Fix to parse xcresulttool version when the version string has major.minor format
When testing Xcode 26 beta 2, when xcrun xcresulttool version is executed, the output comes in as "xcresulttool version 24038.1, schema version: 0.0.0 (legacy commands format version: 3.53)".
We depend on xcparse to extract the logs from the xcreult file and we needed a fix for it.
Change Description: xcresulttool() function is failing to create the Version instance because of the unexpected format. As a result, --legacy flag is not getting added causing the parser to fail.
Fix is, when the version parsing fails, get the major version from version string and drop the minor version
Test Plan/Testing Performed: Installed xcparse with these changes, and tested with Xcode 16.4, Xcode 26 beta-2 and beta-3 versions an observed that the .xcresult file is successfully parsed in all versions.