Prioritize env.diagnostics over env.debug
Merge pull request #4 from sevastos/master

Conflict with env var DEBUG