turns out 'which -s' is not portable, huh!