Properly modify environment option based on ENV
Add functional test for shell_out_with_systems_locale