Fix bug with some linux variants that return file type DT_UNKNOWN from readdir.
Fix bug with some linux variants that return file type DT_UNKNOWN
from readdir.

cmusatyalab/diamond-core-filters,cmusatyalab/diamond-core-filters,cmusatyalab/diamond-core-filters