Corrected query arg escaping in scripts

`$`and ``` will now be passed to the workflow scripts as literals, to
avoid variable and subshell expansion.