New configuration option for enviroment variables

In some cases it's useful to declare the run mode or other setting via enviroment