Better detection of DocumentRoot