Unify handling of source URL display for !cmd and !fn