Fix the command checks in the debian plugin

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.