Fix `brew cask alfred` for Yosemite/Alfred 2.4

Closes #5820
References: #6059
Merge pull request #6066 from rolandwalker/alfred_yosemite

fix `brew cask alfred` for Yosemite/Alfred 2.4