Fixed dirent fail