Cleanup primary Homebrew installation. Refactored brew install to homebrew_install function