PathFinder: fix

Sometimes we search for files which have URL query parameters. In this case we should try to locate base file name (without query parameters).
For example, if we try to locate template "foo.css?v=666" then actually we should try to locate file foo.css not foo.css?v=666