Use the test config when testing the preview script

Move any existing local.ini to a backup location, replace it with
the test one (with its directory interpolation suitably resolved).
Restore the original once the tests have finished running.