changes to allow for setting the depth with newer version of samtools. untested.
Merge remote-tracking branch 'upstream/master'