SCons rebuilds generated source files every launch

Problem In a large project that uses SCons, VariantDir, and source code generation, happens one of the following: generated source files are rebuilt every time when scons is launched if .sconsign.dblite is removed manually, scons crashes with the following trace: OSError: [Errno 2] No such file or directory: …