fix problem with creating the archives dir