add missing `HOMEBREW_CACHE_CASKS.mkpath`

If `mkpath` must be done for the parent dir, then it certainly
must also be done for the child dir.
Merge pull request #2760 from rolandwalker/mkpath_casks_cache

add missing `HOMEBREW_CACHE_CASKS.mkpath`