Update align.pl to auto-generate the bamindex file if BAM_INDEX is specified