Added optional --exclude-dirs flag.

The optional --exclude-dirs flag allows to specifiy a list of subfolder
to be ignored.