feat(log): add support for only one reference replaced

Simple trick to avoid another test against files.length