snippet.pp: Fixed rootgroup determination.