Replace environment with config file