Fix installation logic of consul services config file.