Minor fix for trailing slash in user provided root param.