Improve go script.

Instead of silently failing, error messages are reported from git. It uses
the -q (quiet) option. Also, $CASK_DIR is quoted where used.