+ fix variable name typo
+ be generic on identifying the bwa mem version for pipeling