There could be any number of options following the -o other than -d. This is why I didn't want to take the path out of the command. You could try something like splitting on a character, but there's no telling if that character is contained in the path.

I think we should either use the packager options given (and in this case not use the output path from the JSON) OR use the default packager options and output path from the JSON.