Reuse pathtype detection in `Path` module

`relative/2` should be private, shouldn't it?