Use COCKPIT_DIR instead of __DIR__
Merge pull request #149 from naumovs/use-cockpit-dir-instead-of-__dir__

Use COCKPIT_DIR instead of __DIR__