Fix deploy script compatibility