Improve control flow by not using exceptions, install jruby-openssl
Do not create tempfiles in Rails root directory