Convert files to unix-style EOL before hash check

On Windows bootstrap files could have windows-style EOL depending on the
core.autocrlf git setting.
Fix 1ecad35033429dbf39cca7bc7421780cbf95f3ec

file(COPY) requires a directory and not a file name