Move environemnt logic from config.pp to params.pp

Environment logic to set parameters can (and should) be located in the
params.pp file, rather than spread throughout the codebase. Especially
if in params.pp we are already performing a given conditional to set
other variables.