fix homebrew installed check