Fix for ResourceDirectory path matching.