Minor fixes for clang-tidy finding and clang-format hook
- Sometimes
CLANG_FORMAT_VERSION
was used instead ofCLANG_TIDY_VERSION
- Replace
which
withcommand -v
to follow POSIX specs (under "Shell & Utilities" -> "Utilities" -> "command" or just search it)