Fix parse.split() to handle paths correctly

`parse.split()` currently gives incorrect results when splitting strings containing paths (both UNIX and Win32).