Detect which command to run for computing sha256 sum.