Replace source or tag by its corresponding tag

Signed-off-by: Mathias Kaufmann <me@stei.gr>