Fix paths to account for hosting on sub-URIs