Update shell script: using groovy in bin