Fix cask permissions issues