m/directory: Changed output from Set to Array for speed