When deleting a branch check if git has config.

Don't assume that the remote is always origin and that the
remote branch name is the same as the local one
Merge pull request #299 from jonanp/git-delete-branch

Handle different remotes.