Fix the syntax of quoting strings in shell commands