added path matcher support
(using a glob-to-regex converter borrowed from Apache Hadoop)