Revert "bugfix for directories with group extension"

This reverts commit 15dfcfcd304695d8c07305ecb43c0596387c2191.