(fix) Using __DIR__ in trait

sign of a bad day