Avoid expanding paths for algorithm variables that can match local work directories. Thanks to @brentp for report.
Provide checks for unexpectedly small alignment outputs which appear to occur due to silent errors in samtools sorting