Workaround for improper asset routing.

Issue https://github.com/rails/rails/issues/8119 has all the gory
details. Some commits around better support for Rack's SCRIPT_NAME have
broken this. Best guess at the moment is the asset pipeline needs to be
savvy about this.