CAMEL-5792: Fixed compactPath method to work with both Windows and Unix style paths. This fixes loading resources with validator component using unix styles on a windows platform etc.