More efficient listing of installed Casks

Fix for #911