Using var instead of conditionals for env and deploy