Add pkg.upgrade support for brew
Merge pull request #11116 from jasonrm/module-brew-upgrade

brew: Add pkg.upgrade support