Check HOMEBREW_PREFIX instead of /usr/local