Set $xcode_version to 0.0 if Xcode isn't found to avoid uninitialized value griping.
Give Xcode CLI tools a higher priority in the warning than Xcode.app.