Don't use bash arrays in m4 macros

Fixes #41.

Signed-off-by: Jussi Kukkonen <jku@goto.fi>