path2: Fix some linux/windows issues