quote correctly(?) to avoid bogus output from subshells fixes #770

TBH i don't understand exactly what's going on, but this was suggested by somebody who seems to know what he's talking about, and this seems to work fine for me.
see #770