[checkmk-commits] Use pathlib facilities instead of home-grown code.