Handle already-joined directories correctly. Remove part files only after successful join.