use system2 with PATH for calling /usr/bin/which on OSX