Fix the generating of comments for linked smartscripts