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

These values can be useful for debugging cabal issues.