fix for GRAILS-10464 "Dependency resolver incorrectly set when running in forked mode"