Use sha256sum instead of sha256 to make it work on Cygwin.
(cherry picked from commit f565443a0d31935e2bf7bfc441edd08b3c784ebf)