Replace uses of dirname( FILE )
Replaced with DIR or other relevant code.
Change-Id: Ia3465080ac0ac313a8ae1356c26fd378e0760125