Properly escape the m4 macros and make the code a bit more readable.