fix: keep the mode_t consistency for source/compressed files