Fixing issues with writing BAMs to standard input for external read call.
Merge pull request #81 from fnothaft/pipe-fixes

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