Check for scandir errors