Fix JRuby compatibility.

When creating a .war file with warbler, the public path is set to the
root of the war, not to RAILS_ROOT/public.