Made get_envDiffAndRestart() for diff and restart