sysgen: Relocate code for processing output directory name
sysgen: Relocate code for processing output directory name

Reworks output directory name processing so that it is invoked
at the bottom of the file, just like the rest of the program's
mainline. (It's previous location wasn't incorrect, but it could
be easily overlooked.)

Signed-off-by: Allan Stephens <1038bc33971d2c23c8e2eee8dd6938c077db52dc@windriver.com>

fractalclone/zephyr-riscv,fractalclone/zephyr-riscv,rsalveti/zephyr,Vudentz/zephyr,tidyjiang8/zephyr-doc,ldts/zephyr,32bitmicro/zephyr,zephyrproject-rtos/zephyr,32bitmicro/zephyr,zephyrproject-rtos/zephyr,tidyjiang8/zephyr-doc,bigdinotech/zephyr,mirzak/zephyr-os,rsalveti/zephyr,finikorg/zephyr,pklazy/zephyr,GiulianoFranchetto/zephyr,erwango/zephyr,holtmann/zephyr,mbolivar/zephyr,sharronliu/zephyr,aceofall/zephyr-iotos,punitvara/zephyr,runchip/zephyr-cc3220,explora26/zephyr,fbsder/zephyr,mbolivar/zephyr,runchip/zephyr-cc3200,mbolivar/zephyr,kraj/zephyr,aceofall/zephyr-iotos,runchip/zephyr-cc3200,rsalveti/zephyr,coldnew/zephyr-project-fork,bboozzoo/zephyr,galak/zephyr,zephyriot/zephyr,kraj/zephyr,bboozzoo/zephyr,zephyrproject-rtos/zephyr,holtmann/zephyr,bigdinotech/zephyr,jamesonwilliams/zephyr-kernel,galak/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,holtmann/zephyr,32bitmicro/zephyr,fbsder/zephyr,mirzak/zephyr-os,fractalclone/zephyr-riscv,zephyriot/zephyr,kraj/zephyr,runchip/zephyr-cc3220,32bitmicro/zephyr,zephyrproject-rtos/zephyr,rsalveti/zephyr,kraj/zephyr,zephyriot/zephyr,runchip/zephyr-cc3200,Vudentz/zephyr,galak/zephyr,Vudentz/zephyr,runchip/zephyr-cc3200,erwango/zephyr,fractalclone/zephyr-riscv,coldnew/zephyr-project-fork,GiulianoFranchetto/zephyr,bboozzoo/zephyr,explora26/zephyr,punitvara/zephyr,runchip/zephyr-cc3220,aceofall/zephyr-iotos,mirzak/zephyr-os,pklazy/zephyr,mirzak/zephyr-os,holtmann/zephyr,jamesonwilliams/zephyr-kernel,bboozzoo/zephyr,aceofall/zephyr-iotos,mbolivar/zephyr,GiulianoFranchetto/zephyr,sharronliu/zephyr,erwango/zephyr,bigdinotech/zephyr,tidyjiang8/zephyr-doc,bigdinotech/zephyr,holtmann/zephyr,Vudentz/zephyr,fbsder/zephyr,runchip/zephyr-cc3200,runchip/zephyr-cc3220,coldnew/zephyr-project-fork,tidyjiang8/zephyr-doc,erwango/zephyr,fbsder/zephyr,punitvara/zephyr,nashif/zephyr,bigdinotech/zephyr,galak/zephyr,pklazy/zephyr,nashif/zephyr,explora26/zephyr,ldts/zephyr,galak/zephyr,coldnew/zephyr-project-fork,Vudentz/zephyr,mbolivar/zephyr,finikorg/zephyr,coldnew/zephyr-project-fork,nashif/zephyr,32bitmicro/zephyr,explora26/zephyr,sharronliu/zephyr,bboozzoo/zephyr,jamesonwilliams/zephyr-kernel,zephyriot/zephyr,sharronliu/zephyr,tidyjiang8/zephyr-doc,mirzak/zephyr-os,erwango/zephyr,fbsder/zephyr,GiulianoFranchetto/zephyr,jamesonwilliams/zephyr-kernel,sharronliu/zephyr,nashif/zephyr,rsalveti/zephyr,zephyriot/zephyr,ldts/zephyr,finikorg/zephyr,nashif/zephyr,runchip/zephyr-cc3220,punitvara/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,ldts/zephyr,ldts/zephyr,jamesonwilliams/zephyr-kernel,fractalclone/zephyr-riscv,pklazy/zephyr,punitvara/zephyr,aceofall/zephyr-iotos,Vudentz/zephyr,finikorg/zephyr,pklazy/zephyr