Make shell escaping less produce fewer useless quotes.

Function inspired by tpope's vim-dispatch.