Use Pathname

`Pathname` is great and we should use it more often!