Switching to scandir instead of glob.

For #15