Fixed reference to oraclejava::version in template

* need to use scope.lookupvar instead of direct reference (@) because
the local variable is not visible in the scope where the template is
loaded