fixing upgrade cloudify script.