Fix readdir that doesn't return dt_type