Fix some hidden faults in SPLITPTH.cpp that appears on Windows