factor out argsToString and use single-quotes on Linux