[corlib] Enumerate all subdirectories including the first one. Fixes #22857