No longer runs build twice when mainFiltered fails.