do not load all files into memory at once

Dir[...] should *never* be used in real code as it loads everything into memory at once.  the block form of Dir.glob(&block) loads one at the time.