Use librarian posix library instead of open3

Handles jruby, ruby 1.8, 1.9+
Don't use backticks anywhere