[backend] add a "hasbuildenv" flag so that the scheduler goes into "localrebuild" mode
[backend] cleanup patchproductkiwi a bit
[backend] fix buildenv bdep generation

There was a bug that made the bdep names contain the .rpm suffix.
Fortunatelly we can easily workaround this when reading old
buildenv files.