switched from dirent to llvm/Support/FileSystem