be smarter when guessing the document root