Added a wait to get environment with a core itself.
gcore_setup.py does it.