Bugfix: Correclty handle DT_UNKNOWN in list_files_in_folder.
Bugfix: Correclty handle DT_UNKNOWN in list_files_in_folder.

dirent.d_type is not supported on all platforms, added fallback to
stat in that case.

stian-svedenborg/xyuv,stian-svedenborg/xyuv,stian-svedenborg/xyuv