[BUGFIX] Make environment check standalone