Various fixes for bowtie_wrapper.

See individual commits for details.

All tests pass with Planemo.