core: ability to set env var for silent internal upgrade [GH-3870]