I've been using ```client.sys.config.getenv``` in my code, and it works fine for me. I'm personally not aware of any probs with it, so I recommend it.