Revert "Replace the infamous Spotlight with system_profiler"
Revert "Replace the infamous Spotlight with system_profiler"

This reverts commit 1964f1029a70bab45feebe4fc3cc13392d70801a.
It turns out that `system_profiler` secretly uses Spotlight:
  https://discussions.apple.com/thread/6510972?start=0&tstart=0
  https://www.lansweeper.com/kb/159/apple-mac-scanning-requirements.html

I can't verify it for myself but the info seems legit.
Honestly, I'm not surprised.

KrauseFx/xcode-install,neonichu/xcode-install