[util] Hide an expected error from the 'which' command