Handle existing digest files

Existing checksum or versioned files are recognised, with or without the original file in the mappings. Only absent checksum mappings are created. This allows digest to be in the pipeline multiple times.