Script to remove broken package references in profiles added