remove __DIR__ check as it is buggy in some environments