Improved cask installer and fixed a typo