Fixed links when root dir manually set.