More robust processing of different cabal targets