libwinpr-path: add path detection functions