fixing upgrade dir