Copy reference genome script adapted to pools

Previously only one sample per artifact was updated but pools introduce several samples in a single artifact, thus motivating this change.