Correctly capture the remote master without the origin name.