Try/except around homebrew

fixes #356