fix: preserve correct root during resolve config (#10909)