[backend] fix buildenv generation if the worker uses a preinstallimage