Fix support for branches other than 'master'.

This seems to better support those of us who do not commit directly to the master branch.  I was having a terrible time with the code making a new branch instead of switching to the existing remote.  `repo.checkout(branch)` was the magic sauce.