Updated code to filter already installed packages on service provisioning.