Fix tmp dir bug and update version