Fix bwa and samtools wrappers