build: fix bug which kept regenerating templates.coffee.