Bugfix for depricated environment variable.