fix test for is_core in infiles