brew-dirty: simplify implementation
brew-switch: simplify implementation