fix: splitPath not working on windows

Platform.operatingSystem returns 'windows'. Maybe it was 'win32' in earlier Dart build.