Update homebrew module.
Miscellaneous fixes to homebrew module.
Merge pull request #6749 from danieljaouen/brew

Update homebrew module.