add check for relation.replaces into InstallItem and fill replaced by automatically