use __DIR__ instead of realpath