fix support for relative links in root directory