Fixed bug where .services_to_monitor was attempted to be written before the config directory had been created