BACKLOG-4194 - Regressions raised by code review
https://jira.jahia.org/browse/BACKLOG-4194

Use lowecase path for comparison:
https://devtools.jahia.com/fisheye/cru/AND-168#c6691