brew-dirty: simplify implementation