fix directory listing for archiving