Fix Homebrew checking