Git: try to switch to branch master when no branch has been specified.

Do not give an error in this case when master is not there.

Fixes issue #125

Note: lots of tests are failing, so I or you should fix this before merging, but I am off to dinner now. :-) I just wanted to have it out there.