Set environment properly in deploy command