The {{version}} template is only interpolated for the env: and asset: fields, not for the build.run script (which is passed verbatim to bash). Move the version into env: as VERSION="{{version}}" and reference it as $VERSION in the script.
Powered by TurnKey Linux.