Ruby 1.9.3 compatibility: to_s before shelljoin

In Ruby 2.0.0 shelljoin performs to_s implicitly.
In Ruby 1.9.3 it does not and [1,2,3].shelljoin results in NoMethodError
exception.