fix broken logic for establishing Groovy version

Noticed this never got merged into master