fix err msg printing before backup dir initialization