Changed exception wording for scandir.