use stored version of Config if available
Another fix for GRAILS-10638 - the order of the dependencies impacted the selected scope, which is wrong. The most specific scope should always be selected, regardless of ordering.
Merge branch '2.3.x' of github.com:grails/grails-core into 2.3.x