Add upgrade dir to permissions task.