added cleanup at cask_upgrade