remove code duplication in run-*.sh

These shell scripts have code duplication for
defensive checking variables of ORG and PROJECT

Change-Id: I72a900d5c8ee105cf91d27a3cdf7068f91dec329
Merge "remove code duplication in run-*.sh"