Require pathname when needed, should fix gollum/gollum#728.

This error seems to be the result of a failure to require 'pathname'.  I think this fixes it, though it's not caught by the tests and isn't reproducible on my machine, so I can't say for sure.