fix for crash with cabal files containing wildcards in versions