Move quote_if_needed handling to ShellType.
Move quote_if_needed handling to ShellType.

The various ShellTypes should be able to override this.

Also fix quoting of the PATH variable. Fish is an exception since PATH
is an array there.

rahulg/cosh