improve detecting homebrew prefix, update #2038, update #2041