Allow hooks to inherit stdio - Fix #191