BUG: fixed directory changing after metis build