Add new variable %BRANCH% to interpolator.

Closes #597