Improvment to salt.utils.cmd:

- when using list matching, return as soon as all results are there
- when using custom configuration directory, try to use the master conf.
Merge pull request #11369 from makinacorpus/hfix3

Improvment to salt.utils.cmd: