Use gsha1sum command instead of sha1sum command in OS X

In OS X, it can install GNU `sha1sum` command via Homebrew or Macports.
As usual, GNU toolchain command name is added 'g' prefix in OS X and *BSD.

In sha1sum case, command name is `gsha1sum`.