Export template_dir in Makefile.