[Bug 36329] valgrind shows an invalid read in sccrun/tests/filesystem.c