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