(PE-2650) rack environment setup improvement

This patch improves the setup of the jruby-rack environment
resulting in less friction when running a rack app from a
jar file.