Stubbed open4 for tests so that works on JRuby on Travis