[PTFM-7887] Use "--yes" flag instead of piping output of "yes"

Piping output of "yes" led to the problem of "Broken pipe" (on linux),
and stuck call to subprocess.check_call() (on mac).