Peel off options hash passed to Open3.popen3.

Fixes #1290.
Fixes #1547.