Check remote of current branch

Default to master branch and origin remote when remote lookup
for current branch fails.

Closes #150