logToCli + compatCheck fix

when an argument contains a quote, escape it with double quotes instead
of single quotes