Improve test runner exclude logic so it also compares by file name.

Allows binary files that are not tests to be excluded by file name.