Fixed activation issues beacuse of incompatibility with __DIR__ in PHP versions prior to v5.3