Merge pull request #5191 from eaigner/master config: check if we are running in a sandboxed environment