Check for scandir success