fix bug in specPath same as srcPath

There is a bug in specPath same as srcPath that "supportsQuery" method
return "false".

Cause is the presence or absence of the "/" at the end of the path.

Modify like as "findResources".