Fix test loader for dasherized file names.

Commit 036df2e2c00aee broke the test loader so that no test modules were
found or loaded, and no tests run.