Lock Ruby versions

* Install java before installing JRuby - this differs on linux and mac.