Jruby return RUBY_PLATFORM as 'jruby', not an os identifier, so, GS[:path] is nil when File.exists?(GS[:path]) is called, resulting in a unexpected "can't convert nil to string" error.