Use pathlib for handling file manipulations

Only playing with this for the time being...