Fix for ruby 1.9, shell.new returns a string not an array