Frontend: quote " and ' properly in /exec

We can't pass quoted ' to sh thus we need to use " quoting instead.