update make-common.sh to work with gs3