Sort out the pathlib shimming