use 'dirs' consistently in os.walk() iterations