build: include m4 dir parsing