remove environment functions in favor of ENV hash. fixes #2234
Merge branch 'master' of github.com:JuliaLang/julia