add redirects to Kerne::exec to avoid bad file descripter errors in ruby2.0
only use redirect options in ruby 1.9 and greater. Avoid unsupported syntax in 1.8
Merge pull request #220 from lsylvester/redirects

Prevent Bad file descriptor (Errno::EBADF) Errors on restart when running ruby 2.0