Fixed a bug in the build script and added more logging. Added a python replacement for the C-based sha1 program.