Detect Cask contents correctly