don't reinstall already installed casks

thanks to @ccutrer for the catch; this implementation is based on his PR

refs #233