fixing upgrade cloudify script