doctor: avoid using MACOS_VERSION
Prefer interpolation to concatenation
Remove outdated comment
Remove unused variable