Fix licence tool include/excludes for Windows (#8843)
If the YAML file contains an exclusion using a forward slash then this condition would fail to match when running on Windows. This change uses `path.isWithin()` which handles the mismatched slashes automatically.
This fixes some test failures when running the licence tests on Windows.