Implements mainConfigFile in require.js config