fix DIRENT->type unknown