I have some xml-configuration files that we create in a Windows environment but is deployed on Linux. These configuration files reference each other with filepaths. We've had problems with case-sensitivity and trailing spaces before, and I'd like to write a script that checks for these problems. We have Cygwin if that helps.

Example:

Let's say I have a reference to the file foo/bar/baz.xml, I'd do this

```
<someTag fileref="foo/bar/baz.xml" />

```

Now if we by mistake do this:

```
<someTag fileref="fOo/baR/baz.Xml  " />

```

It will still work on Windows, but it will fail on Linux.

What I want to do is detect these cases where the file reference in these files don't match the real file with respect to case sensitivity.