Fixed to actually work with sources that are symbolic links.