Fix misgenerated grunt task when not using a template library

It sure would be nice to have this extended if/else broken to separate lines for readability/maintainability