fix testsuite's test directories generation