Changed checking of package tar