Hack pane_current_path to use shell's fd instead of pgrp.