Fix bugs with allow-duplicate-installations-on-an-agent.

- Make sure that the config setting is respected everywhere.
- If less agents than requested installs are present and duplicate installation is allowed, install
  more than one instance of a service per agent.
I think this only works if limit divides evenly into the nodes.  For example if you have a target of 10 and 3 nodes you will only get nine installations.