fix some broken things in the build script.
fix some broken things in the build script.

hhua/kore,bonifaido/kore,hhua/kore,bonifaido/kore,zhcy/kore,fourdollars/kore,jorisvink/kore,korusdipl/kore,bonifaido/kore,hhua/kore,sinemetu1/kore,jorisvink/kore