Add configuration logic for master config file.

Add logic that only updates the configuration file if the agent is
installed without the master components.