Small fixes to deploy scripts