Handle absolute pathnames correctly in dtc_open_file.
Handle absolute pathnames correctly in dtc_open_file.

Also, free file->dir when freeing file.

Signed-off-by: Scott Wood <b77916c2feab81a70245e7b5671f4f02730ebf64@freescale.com>

MiCode/mi2_lk,idor/dk50-bootable_bootloader_lk,idor/dk50-bootable_bootloader_lk,M1cha/android_bootable_bootloader_lk,M1cha/android_bootable_bootloader_lk,M1cha/mi2_lk,Blefish/android_bootable_bootloader_lk,jsr-d9/android_kernel_lk,jsr-d9/android_kernel_lk,idor/dk50-bootable_bootloader_lk,t2m-foxfone/kernel_lk,pichina/lk,oubeichen/lk-v500,CanarySolutions/little-kernel,MiCode/mi2_lk,DooMLoRD/android_bootable_bootloader_lk,zhuotong/mi2_lk_NoEmmc,M1cha/lktris,jsr-d10/android_bootable_bootloader_lk,mozilla-b2g/fairphone2_kernel_lk,hanjae/lumiab0,MiCode/mi2_lk,lg-devs/g2-bootloader,M1cha/lktris,M1cha/android_bootable_bootloader_lk,DooMLoRD/android_bootable_bootloader_lk,detule/lk-g2-spr,jbott/lk_gee,Foxda-Tech/polaris-bootable-bootloader-lk,RonGokhale/android_lk_bootloader,Foxda-Tech/argo8-bootable-bootloader-lk,utilite2/lk,Blefish/android_bootable_bootloader_lk,detule/lk-g2-spr,jbott/lk_gee,jsr-d10/android_bootable_bootloader_lk,jsr-d9/android_kernel_lk,Redmi-dev/android_bootable_lk,M1cha/mi2_lk,chirayudesai/android_bootable_bootloader_lk,CanarySolutions/little-kernel,zhuotong/mi2_lk_NoEmmc,RonGokhale/android_lk_bootloader,M1cha/android_bootable_bootloader_lk,hanjae/lumiab0,efidroid/lk,MiCode/mi2_lk,MiCode/mi2_lk,t2m-foxfone/android_kernel_lk,t2m-foxfone/kernel_lk,Redmi-dev/android_bootable_lk,efidroid/lk,Foxda-Tech/argo8-bootable-bootloader-lk,t2m-foxfone/android_kernel_lk,lg-devs/g2-bootloader,mozilla-b2g/kernel_lk,lg-devs/g2-bootloader,zhuotong/mi2_lk_NoEmmc,jsr-d9/android_kernel_lk,oubeichen/lk-v500,Blefish/android_bootable_bootloader_lk,utilite2/lk,utilite2/lk,Foxda-Tech/argo8-bootable-bootloader-lk,pichina/lk,hanjae/lumiab0,efidroid/lk,mozilla-b2g/fairphone2_kernel_lk,mozilla-b2g/fairphone2_kernel_lk,Foxda-Tech/argo8-bootable-bootloader-lk,Blefish/android_bootable_bootloader_lk,pichina/lk,M1cha/lktris,CanarySolutions/little-kernel,t2m-foxfone/kernel_lk,M1cha/android_bootable_bootloader_lk,jsr-d9/android_kernel_lk,chirayudesai/android_bootable_bootloader_lk,M1cha/mi2_lk,lg-devs/g2-bootloader,M1cha/lktris,chirayudesai/android_bootable_bootloader_lk,Blefish/android_bootable_bootloader_lk,M1cha/android_bootable_bootloader_lk,t2m-foxfone/kernel_lk,detule/lk-g2-spr,thornbirdblue/codeaurora_lk,jbott/lk_gee,chirayudesai/android_bootable_bootloader_lk,DooMLoRD/android_bootable_bootloader_lk,utilite2/lk,jsr-d10/android_bootable_bootloader_lk,RonGokhale/android_lk_bootloader,zhuotong/mi2_lk_NoEmmc,Foxda-Tech/argo8-bootable-bootloader-lk,efidroid/lk,thornbirdblue/codeaurora_lk,Redmi-dev/android_bootable_lk,DooMLoRD/android_bootable_bootloader_lk,thornbirdblue/codeaurora_lk,M1cha/mi2_lk,Redmi-dev/android_bootable_lk,idor/dk50-bootable_bootloader_lk,oubeichen/lk-v500,zhuotong/mi2_lk_NoEmmc,idor/dk50-bootable_bootloader_lk,jsr-d10/android_bootable_bootloader_lk,pichina/lk,oubeichen/lk-v500,t2m-foxfone/android_kernel_lk,Foxda-Tech/polaris-bootable-bootloader-lk,CanarySolutions/little-kernel,t2m-foxfone/android_kernel_lk,mozilla-b2g/fairphone2_kernel_lk,CanarySolutions/little-kernel,detule/lk-g2-spr,utilite2/lk,Foxda-Tech/polaris-bootable-bootloader-lk,hanjae/lumiab0,mozilla-b2g/fairphone2_kernel_lk,thornbirdblue/codeaurora_lk,jbott/lk_gee,hanjae/lumiab0,mozilla-b2g/kernel_lk,detule/lk-g2-spr,mozilla-b2g/kernel_lk,t2m-foxfone/android_kernel_lk,pichina/lk,RonGokhale/android_lk_bootloader,Foxda-Tech/polaris-bootable-bootloader-lk,DooMLoRD/android_bootable_bootloader_lk,mozilla-b2g/kernel_lk,M1cha/lktris,efidroid/lk,t2m-foxfone/kernel_lk,M1cha/mi2_lk,oubeichen/lk-v500,RonGokhale/android_lk_bootloader,thornbirdblue/codeaurora_lk,jbott/lk_gee,chirayudesai/android_bootable_bootloader_lk,mozilla-b2g/kernel_lk,lg-devs/g2-bootloader,jsr-d10/android_bootable_bootloader_lk,Redmi-dev/android_bootable_lk,Foxda-Tech/polaris-bootable-bootloader-lk