Tests: revert 5db96b64cead, use "which" instead of "command -v". It turns out that Linux doesn't have "command -v" (there are shell builtins, but no standalone binary). Use "which" instead, and provide a special case for Solaris.