applying mods recommened by homebrew devs in pull request