Refactoring. Siteroot is now in the config file and fallback on siteroot is written in a better way