Fixed path parsing on Windows where File.separator is a backslash.
Fixes bug NMS-6465.
[bamboo] Automated branch merge (from 1.12:3adb771279435cf0a776ebfa6f043816e4715f00)