Fix application deploy scripts