fixed pan-genome script