Fix error when trying to use groovyconsole on publish env.