Make the log string variable creation POSIX-friendly

The syntax foo+="baz" is not supported by all POSIX shells; this has
been replaced with a multi-line string instead.