Give parameter struct path_matcher to all match functions.

This allows some auxiliary data stored in struct path_matcher, which
could be very useful to speed up the match functions.