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

The scope[] command is only available in puppet version 3. scope.lookupvar is available in Version 2 and 3