Update mac-functions

Add a install or upgrade function for brew-cask.