split deploy command according to the specified environment