Fix regression test file access issue