Force Cabal >= 1.19.2 when --allow-newer is enabled.

Fixes #1624.
Refactoring.