Raise several warnings to error level
If readdir doesn't provide the entry type then fall back to lstat