provide correct path for require_once
use __DIR__ instead of realpath