Added dirent properly