Fix JRuby install and Rubinius issues

Fixes #23.