Fix shutil.which() test for issue #16993.
Fix shutil.which() test for issue #16993.