Fixed links if root directory is in a subdirectory of the host.