Better cabal detection