build.sh: Suppress stderr of which

Some implementations of which write to stderr on error.