Fixes so elPrep works with Unix pipes:
- stderr for output
- checking for existing files
- clearing buffers
- number of threads for samtools calls