use git checkout instead of sed when not overriding Groovy version