(refactor) Move TARGET in configure script.
Merge pull request #32 from zzmp/refactor/configure-target

(refactor) Move TARGET in configure script.