Changed so license files are written in binary mode to solve different hash because of line feed endings and character set used