Save temporary in correct dir during upgrade