[sh] Redirect output from 'which' to stderr.

This was causing spurious output on various systems when components were
not installed.