add __DIR__ in require function

In the case of symlinks, the __DIR__ constant fix a "require" bug.