Correctly get names for directory children