The gsub
where the syntax error is being produced includes Regexp syntax which isn't supported in < Ruby 1.9.3, and would produce this identical error in those versions, it seems. However, your paths show Ruby 2.0.0, which is odd, so I'm not entirely sure what's up.
Hopefully that gives you something to go on though, look at your Ruby install perhaps.