The previous implementation made the assumption that `which` would
return a path when `sudo` and/or `aptitude` were installed; however,
when a command is aliased, e.g., `nocorrect sudo`, no path is
returned, causing a false negative in the test.
The debian plugin calls which to determine whether aptitude & sudo are
installed. However, if these are not installed then the error output
from which will be output. Since this isn't really an error condition,
this commit updates the which calls to pipe stderr to stdout, thus
hiding the error messages.