drop regex-compat dep with a simpler pkg-id check

This makes it easier to build cabal-rpm
when starting from a new ghc install
(cabal-install doesn't use regex either)

We should really use Cabal's parsing of PackageIndentifier's
but this probably good enough for now.