Make SPLITPTH.cpp work (better) on Windows