Use pathio package to write dump to arbitrary paths

Fairly simple change that I just tested manually.