Fix install_name_tool check when Xcode license isn't accepted yet

Fixes #32712.