enable deployment to relative path

Yes it turns out that it will break deployments if RAILS_RELATIVE_URL_ROOT is not set.