[core] Implement process.env