fix handling of links in dependencies