Use Readdir instead of glob