fix Makefile.template