Use dirname(__FILE__) instead of __DIR__ for
compatibility with PHP <5.3.0