Improve `brew doctor` autocrlf check.

Closes #15711.