elasticbeanstalk: improve two Environment setters.