Fixed path parsing on Windows where File.separator is a backslash.
Fixes bug NMS-6465.