Fixed the sam->bam conversion step.
Nicer fix.
Merge pull request #71 from roryk/master

Fix to sam->bam conversion step.