Move building bowtie index into a script.