pathtools: Move MSYS2 specific functions to separate files. Check path separator when splitting path list.