Change open mode from rb to r in generateSha1Sum

As in windows, there is a side fact of opening txt file in binary mode.

Change-Id: Ibce5a3cc6f5df0a0a19177a57ed3a5b3076ada2d