fix remote call path in upgrade.py