Update dirEntries() and remove not needed endsWith().

See: http://dlang.org/phobos/std_file.html#.dirEntries (second paragraph)