Make 'configure -w' update the cabal.sandbox.config file.

I decided to go this route instead of passing compiler & platform to
'reinstallAddSourceDeps' directly because it makes the side-effect of
'configure' easier to test.