Fix deploy scripts