Use __DIR__ instead of dirname( __FILE__ )

Change-Id: I06be3b56fe83a561a2310a8505885b9888e8b6eb