Fix detect-minions.
Merge pull request #2776 from brendandburns/fix

Fix detect-minions.