The backslashes are used to escape the quotation marks, since argv[0] might contain spaces. I'll improve the logic to check if escaping is actually needed.