[m4] Don't use bash arrays in m4 macros

Fixes #41.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>