Support mainConfigFile option