Fix the task when brew-cask is installed