Use stat on file systems that do not support d_type in file entry record returned from readdir.

This fixes https://github.com/adobe/brackets/issues/5292.