Revert "Add exclude-dirs attribute" (this feature is broken)

This reverts commit 55e129ed03a9135068b5c1608d73a58fe404e06d.