fix for GRAILS-10187 "Allow changing the version of the Agent used by forked mode"