Correctly escape $ in variables for generated script