history: fixed issue with upgrade script

Change-Id: I58e468c6d547f465a1989e55a9bd712dd4c516da
Signed-off-by: Yaniv Dary <ydary@redhat.com>
(cherry picked from commit 7b19bf2342df7d7080b02d3361213be39236667f)