Added check for brew to prevent errors on linux.