Fix git.RefExists() to accept branch names

Close #68