Move UTIL_ListDir to filesystem module. Add "IsDirectory" function to filesystem module.