engine: Fixed upgrade script with duplicate number

Change-Id: I563aa8c81b5ba1d609f72a83d592bf7655b98995
Signed-off-by: Shireesh Anjal <anjalshireesh@gmail.com>