Splitting path correctly on Windows