brewscript: enable the script to be independent with its own Homebrew check/install method