Fix path bug on Windows that made the unit tests fail

The parser unit test fails on Windows because the code assumes pathsep is ':' and sep is '/'.
This patch only touches the unit test and uses the os separators -- like the parser itself does.