Fix directory listing at the end of tests