Convert JanewayPath to function and other fixes
mea culpa.
- private pathlib API subject to changes, JanewayPath did not work on py3.11
- JanewayPath did not work on docker py3.8 images
- reimplement as class for py3.12 when Path is subclass-able
Edited by Tobias Hangleiter