Check if homebrew exists before trying to install it.