Support for environments in ruby scripts.