fix issue with ruby 1.8 because sha1::hexidigest change