fix(kernel/environment): initialization problem on OSX

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>