Update mac-functions

Fix brew cask list check.