fix path for writing output mesh