KFSTI-727 fixing upgrade scripts