Make sure that paths compare the OS path string instead of the generic.

For those entries that are comparing path use toOSString to make sure the
entry is being compared to the OS Specific string.