Fix bug in test script causing only the first dir level of test modules to be run