Try (a little) harder to lookup a reference

If ```git_reference_lookup``` fails, we should try ```git_reference_dwim```.