Fix for PHP > 5.3 not supporting __DIR__