Fixed bug in deploy.groovy.