Fix conda search --platform to work in all cases

Fixes #524.
Merge branch 'master' of github.com:conda/conda