Move hard coded config variables to environment.sh and

@mwall Sorry, yet again more.