Prevent os.walk() scanning excluded dirs. (#898)

2 files changed