Fix checksum algorithm and Ruby 1.8 support (again)