Guard more Homebrew code so it's not always run.