Fixed binary sha reads on FreeBSD.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>