Fixing issues with writing BAMs to standard input for external read call

Fixes following issues:

* Correctly assigns standard out/err for built process
* Changes to use different streaming BAM writer, due to issues in current samtools BAM writer