Fix bug with options that are an array

For example:
`options.define = ['VARIABLE=false', 'ANOTHER_VARIABLE=true']`

currently translates into `--define VARIABLE=false,ANOTHER_VARIABLE=true --define VARIABLE=false,ANOTHER_VARIABLE=true`

when the correct result is  `--define VARIABLE=false --define ANOTHER_VARIABLE=true`