Miscellaneous fixes to homebrew module.