Fix JRuby installation

Hi,

there was a problem with the JRuby installation since JRuby needs to be in the path (even during installation of bundler), and JAVA_HOME needs to be set.