Correct templating in dist file