[bootstrap] generalize check for homebrew install.

Since homebrew could be installed to a non-default location (ie
something other than /usr/local/bin/brew), I've switched the check to
use the shell command `type`, which is standard on all *NIX systems (OSX
and Linux).