Use POSIX builtin `command` instead of `which` for existence test

http://mywiki.wooledge.org/BashFAQ/081