Apparently which -s is OS X-specific; apparently command -v >/dev/null is portable