mkdictlist: support updating Makefile.am in-place