GROOVY-6790 Fix groovysh startup with groovysh.rc

Note that commits with GROOVY-6754 cannot be merged onto 2_3_X branch before the GROOVY-6754 have been merged (if that were planned)