Corrected variable definitions and added missing variable definition in gtransfer.sh.