remove trailing "/" from sampleID if present, minor edits.

* better file/directory name testing in ngs.sh.