ENV/shared: use homebrew/versions GCC if installed

Closes #28820.