Use remote branch name if one exists, otherwise fall back to master