Fix [".."] appearing in generated paths, due to Array#to_s behaviour on Ruby 1.9