The tests now read cabal.config strictly so that the file is closed by the time it is deleted for the next test.