build: fix application build in symlinked environment
build: fix application build in symlinked environment

This fixes issues building in a tree which has symlinks in its path,
for some reason PROJECT_BASE ends up having symlinks removed from it
but not ZEPHYR_BASE, causing Python to generate relative paths
with "../.." (for example) in the beginning. This patch ensures both
have symlinks removed before computing SOURCE_DIR.

Change-Id: I3e0688b602a320d7644834b73cde79cfe91cb677
Signed-off-by: Andrew Boie <aab045b28152628be6af0e556050d0381fd0a34d@intel.com>

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