Fix JRuby exception in posix run! method.

Works for jruby-1.7.9 in both 1.8 mode and 1.9 mode.

Fixes #161.