doctor: avoid using MACOS_VERSION
Prefer interpolation to concatenation
Remove outdated comment
Remove unused variable
brew-test-bot: remove escape characters.
passenger 4.0.20

Closes #23146.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>