Tweaks to work out of the document root.