Doing `change_rpath(old, new, file)` will error if `new` is already an rpath for `file`. When this happens, `old` is no longer needed, so we can delete it. Fixes a build failure at shivammathur/homebrew-php#1848.
typed: true
--os=all
--arch=all
OS::Mac::Version
MacOSVersion
Naming/MethodParameterName