Edit Cocktail cask in order to use conditionals

This is a follow up for: #6849

Thanks @rolandwalker and @vitorgalvao! I updated the cask to use conditionals as you mentioned. I hope it's good practice to have the `appcast` setting present for each version?