Use __DIR__ instead of dirname( __FILE__ )

Change-Id: Ibd0f9c9baf52d9962ab3fcbfe31e04028aed699c