updated brew packages
updated check for homebrew