Fix broken linking in script