bugfix: missed a test for $ENV{ENABLE_AUTO_RESTART}