Specs and a possible fix for gemfile git entries

See issue jruby/warbler#165.
Fix spec for jruby: don't use `:err` for `IO.popen`