Possible problem with readdir() and/or lstat()