define __DIR__ for php version < 5.3.0