Fix loading logger configuration from environment variables

Fixes #6.

This is a pretty hacky fix. Testing it will be difficult, since you need to change the environment variables for that one specific test. Maybe add a separate mocha invocation in the Makefile?

Or refactoring config.js so it doesn't have a dependency on logger.js. I think I'll see if I can do that...