replace \n with true newline in scripts