[Validator] Change detection of errors to not mistakenly report warnings with the string error in the message as an error. Also correctly report warnings from xcodebuild as warnings