brew-switch: simplify implementation