Improve error message in Libgit2.hs
Switch to using the allocate function in resourcet