history: fixed issue with upgrade script

Change-Id: I58e468c6d547f465a1989e55a9bd712dd4c516da
Signed-off-by: Yaniv Dary <ydary@redhat.com>