use -a for tee as that's more widespread among OSes

the --append cmd flag for tee is only available on Linux distros
other UNIX like systems only have -a for append in tee.