Improve {rb,py,nd}env support