Open3#popen3 should use leading Hash as additional environment variables

Fixes #1547
Fixes #1290