Added Brew support to prepare-mac-os.sh