Correct issue in upgrade path for bwa

Need to improve this in future releases