Use ruby in place of jruby, it feels more generic.
Mark previous_but_on_dir_to as private.
Merge pull request #1 from voxik/master

A few fixes