build.sh: Re-enable -c option
Correct calls to internal templating functions