Reconfigure if 'cabal.config' was changed.

Fixes #1485.