fix testsuite if directory does not exist