adjustments to support relative_url_root better. [#166]