Revert "updated exit_value to hold 0 by default for ruby 1.8.7"

This reverts commit 04957c81ca27e06b3ad0d37c7e51db8707e25795.
Trapping wait_thread itself and returning the proper
exit_value depending on whether wait_thread is nil (for Ruby 1.8.7)