Fix mode for files in repository