bundler checks for sudo availability by using which.
Depending on the platform or distribution, which output an
error message on stderr in case sudo is not found.
This fix redirect stderr to /dev/null. Agreed this is a *nixish way to
fix it, but as on other platforms (Windows) which does not exists anyway