Add exclude-dirs attribute