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

See: http://dlang.org/phobos/std_file.html#.dirEntries (second paragraph)
Merge pull request #164 from vsn4ik/update_dirEntries

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