Yet another set of hacks to fix requirejs-rails relative url bugs