Fix start-up bug leading to a potential deadlock trying to access config...

... files + some debug messages