Added an exclude purge pattern

Changes for the exclude pattern support
Shouldn't that be
command.extend(['-X', pattern])
or
'-X{}'