Fixed problems with the SITE_ROOT implementation