BUILD: add pathlib dependency
TST: dont rely on knowing directory