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.
Merge branch 'foobarman-v0.5-wip' into v0.5-wip