The match pattern is now configurable, as is the decision of whether to discard the non-filename parts of the pattern or not.