Sanitize permission bits of root directory when building packages