Bugfix for depricated envoronment variable.