Properly handle setting of DEBUG in config

fixes #73