fix(kernel/environment): initialization problem on OSX

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(kernel/environment): initialization problem on OSX