redirect stderr to /dev/null to avoid unwanted output.

On some platforms the sudo present test outputs unwanted spam on the console. For example this happens under jruby from a cygwin prompt on windows.

This small change redirects stderr while keeping stdout output intact.