update deploy.py to prevent the commands from running out of the order

unlike os.system, subprocess.check_call will wait for command to complete