adapt autoinstall patch to upstream
minimal fix to adapt patch to upstream changes