Add Cabal and cabal-install version numbers when writing a new config file.

These values can be useful for debugging cabal issues.
Merge pull request #2152 from erikd/config

Add Cabal and cabal-install version numbers when writing a new config fi...