clean up brew / brew cask during upgrade