Fix case-sensitivity of exclude paths

We use OrdinalIgnoreCase, Sitecore uses case-sensitive. Modified the check to try paths insensitively first before using Sitecore's method.