remote rename: more carefully determine whether a remote is configured