Better filename matching

This fixes an issue that occurs when not using something like require.js to include source files, and the files are URLs. Both `excludedFiles` and `customThreshold` were not working as I though would be best.

Not sure how to write tests for these additions. Would be glad to do so if I could get pointed in the right direction.