0.8dev: Escape substitution of `$USER` in template. Fixes #673.

Patch by Olemis Lang.

git-svn-id: https://svn.apache.org/repos/asf/bloodhound/trunk@1526635 13f79535-47bb-0310-9956-ffa450edef68