Replace dirname( __FILE__ ) with __DIR__ in extension installation file

Change-Id: If1f99e429bbfe421f678fdbb6134976bc7a56149
Merge "Replace dirname( __FILE__ ) with __DIR__ in extension installation file"