moved the webserver root detection line after the installation of the webserver