Improve brew doctor
output on prerelease macOS
#18274
Merged
brew doctor
output on prerelease macOS
#18274