Fix remote_name test to work correctly on Darwin