fixed some bugs on filename handling in exabayes