autogen: create missing directories

create config and m4 directory if it's missing