Merge pull request #614 from tkruse/groovy-7290

GROOVY-7290: Groovysh: More robust and eager-failing command detection