WIP fix `brew cask alfred` for Yosemite/Alfred 2.4

Works, but needs new tests.

References: #5820, #6059