Improve the method of extracting the site root