Refine test-runner handling of valid/invalid dirs.
Changed file mode of Driver.java.