bugfix when waiting for config file for MongoDB