Simplify using native getenv instead of getValue