Fix deploy if statement syntax