Fix environments initialization for v8 new API
Merge pull request #59 from nbessi/fix_env_init_v8

Fix environments initialization for v8 new API