Change lfn check to allow more than 1 groupname level. Fixes #4568.