Check value of compiler rather than HOMEBREW_CC
Use a case statement