As my knowledge, there is priority for reserved 'default start file'(though I can't find the place of the statement). For example, if there are two start up file, 'index.html' & 'index.htm', we must choose the 'index.html' as the startup file.
So imo we'd better keep the array of entry files as outer cycle.