fix sysconfdir path detection