Update the path case sensitivity

in case user uses the case sensitivity file system such as using in OS X Server
Merge pull request #5444 from KevinChen/patch-1

Update the path case sensitivity