[MOD] Back Makefile.template to precious verion