Pathname doesn't have to_path in 1.8
Merge pull request #1557 from ratnikov/test-fix-build

Pathname doesn't have to_path in 1.8