You'll have to explain why to_s is a bug.  You should get the path that way just fine, too.