gcs: Generate gcs.sh script from keys and input file.

- Added OTHER_TARGETS to build system for adding one-off targets.
- Fixed syntax errors in gcs.sh.
- Try xterm if gnome-terminal fails in gcs.sh.