Modify testrunner to allow wildcard paths
Make test shim replacer more error resistant