Fix for Issue #4: exclude directories during os.walk()

I borrowed liberally from the code that was doing exclusions, to apply those same exclusions during os.walk() time.  This works for me.