Adds the ability to detect the documentroot