Find real document root; Simplify debug paths