haskell: check to see if cabal is installed before looking through packages