Restore hooks PATH before calling ruby.