getConfig[Recursive]: better support for recursively resolving mainConfigFile property