fix scope deprecation error

Referencing variables within a template is deprecated in puppet 3, to be removed in puppet 4.

@varname or scope.lookupvar('varname') resolves this issue.  As far as I know both are backward-compatible with puppet 2.7.