fix no implicit conversion of Pathname into String in some cases
Merge pull request #113 from managr/master

I get no implicit conversion of Pathname into String sometimes