template: interpolate builder name in ParseTemplate

fixes #858