WIP: Deduplicate files in local cache with or without exec rights
Description
If we introduce an exact same object with execution rights as existing
file without execution right, we should not expect that the files
suddenly get execution rights. This breaks reproducibility and it is
easy to encounter. For example install an empty file with execution
rights. Or copy files from another artifact and chmod +x it.
This merge request, when approved, will close: #910
Edited by Valentin David