Fix "absolute path" when we look to the cache directory

We should get __DIR__ instead of __DIR__ . '/.'
fixed CS
Merge branch '2.3' into 2.4

* 2.3:
  fixed CS
  Fix "absolute path" when we look to the cache directory