use Sys.which in test scripts