Use __DIR__ constant instead of (dirname(__FILE__)

As from php 5.3 is possible to call directly __DIR__ constant at compile time