JRuby fixes for shelly add

When shelly is used under JRuby the generated Cloudfile has ruby_version set to "jruby" and puma used instead of thin.