Build script templating fixed