Fixes #691, allow mainConfigFile to be an array
Merge pull request #713 from frasern/master

Fixes #691, allow mainConfigFile to be an array