Fix [".."] appearing in generated paths, due to Array#to_s behaviour on Ruby 1.9
Merge pull request #8 from domcleal/ruby19

Fix [".."] appearing in generated paths, due to Array#to_s behaviour on Ruby 1.9
Merge pull request #1 from onyxpoint/master

Resync with upstream