In the original order, stderr was connected to the old stdout (terminal). This was _probably_ not intended. The new order fixes this by first connecting stdout to /dev/null and then attaching stderr to that as well.
command -v emits a string to stdout, silence this since we are only interested in the return code.
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>