Added support for brew.
Now supports brew or macports.