Added wrappers around the binary check.
Merge pull request #389 from libgit2/binary-check

Added wrappers around the binary check.