Fixes #572, allow mainConfigFile to be an array