fix --exclude option format

* specify Array as the argument type instead of passing an instance
* ensure arguments are valid exclusions before setting env variable