Implement MacOS.dev_tools_prefix a different way

Avoid producing a dev_tools_path of "//usr/bin".

Fixes #24751.
Closes #24754.