Fix the '--bundle-dup-excludes' flag and add '--bundle-dup-max-dups'

It'd be better to use a list comprehension or generator here rather than map(), see http://stackoverflow.com/questions/1247486/python-list-comprehension-vs-map