Update ruby.rb to attempt file i/o fix