Add missing require for 'pathname'.
Merge pull request #3 from bengler/fix_pathname

Add missing require for 'pathname'.