fix tar entry mode creation