Use shortest group with no files, not only group with no files, as parent group attributes