Make 'reconfigure' a bit smarter.

Avoid reconfiguring if the package was previously configured with a different version of Cabal. Fixes #1276.