Root variable trailing slash bugfix.