Fixes to deployment script (became apparent when deploying a new supervisor configuration)