Fix issue in identifying documentRoot