set DEBUG according to environment variable