Issue #1492374 by quicksketch, Dave Reid: Attach source reference existing file where it's the same as source