Rewrite session files on the fly with location of test data directory (where key specified),
so that the tests can be run on other computers more easily