hacky solution for brew upgrade brew-cask, which fails with error