Attempt a fix for #837

I don't have a test, but I tried it out locally and this caused the children to show up correctly. And as a bonus, it avoids a dir stat sometimes.