cleaned conditional logic in shell script and start jruby from jar