check for presence of cask before installing it

@eventualbuddha one more gotcha from #72.