upgrader: fix config reading