bug fix and updated to handle different versions of QIIME (1.5 - 1.7)