fix brew PATH issue on fresh installs
Homebrew was installing successfully but not being added to PATH
before package installation script ran. This caused all package
installation to be skipped with 'brew not found' error.
Now explicitly adds brew to PATH by evaluating shellenv from known
locations before checking if brew command exists.