fix brew-cask exists checking and add brew-cask options into enviroment