[WIP] require 'pathname' and aplying fixes

I openend this PR in order to fix #340 on my side

@dasibre i ran bundle update and modified the gemfile for point to my local path

ref #340 @dasibre @bblimke