get_matching_paths() needs to have a reference to root dir

This is so that the test cases can be run outside of the immediate
dir, e.g. if testing vendor components with a parent component