Handle existing digest files

Mappings are checked for existing checksum or versioned
files and only absent digest files are added to the pipeline.
This also allows digest to be in the pipeline multiple times.