Only run brew commands when present.