Allow deploy_script() to install syndic

Also includes a couple of minor fixes from earlier commits.