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.
Merge pull request #4 from ahoward/master

do not load all files into memory at once