Allow cfg files plus variables to be specified through the CLI

Improve env setup for spawned containers