Changed scope[] to scope.lookupvar for compatibility with puppet < Version 3