Explicitly require pathname

Something else somewhere else requires it,
but its not guaranteed to be loaded
Fix to_json
Bump version to 0.1.6