Fix for md5sum for file

Fixed the code for file where it was trying to read
the data even without opening the file

Change-Id: I80da462fba002fcbc88e878df2c6026e4530505a