Fix dependency copy.