Fix redirection of stderr on 'which dpkg'