allow index.txt in path for checking for remote binaries, update #2743, update jruby/jruby#1607