Fix issue phinze/homebrew-cask#1252