Fix numerous bugs in the Win32 path splitter