[908738] Fix checksum generation on windows

Files need to be opened in binary mode to correctly read the contents for checksum
Add newline to checksum file to make more readable