Repoindex windows test fixes

After moving the repoindex code to the bnd repo, it was then built and testes on the windows jenkins system which exposed several issues on windows. This PR fixes 2 issues which address the root of the test failures.