[CB-3435] Fixes a problem where the options in the run command were not escaped properly

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>