Reuse pathtype detection in `Path` module
Merge pull request #2624 from lexmag/pathtype

Reuse pathtype detection in `Path` module