scons: fix write_git_sha1_h_file() issue on Windows