Avoid too long commandlines by writing regions to intermediate file before passing to samtools commandline #386