php 5.2 compatibility: removed __DIR__ usage