Make `CLI::Alfred` and `Source::PathBase` work with Ruby 1.8
Merge pull request #7738 from claui/fix-brew-cask-list-ruby18

Fix regression where some CLI commands break on Ruby 1.8