Implement environment passthrough (fix #1)